package com.sctvcloud.dongqu.beans;

import com.ruihang.generalibrary.ui.util.IListData;
import com.sctvcloud.dongqu.ui.util.IListShowData;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/8/10 0010.
 */

public class AFileItem implements IListShowData, Serializable {
    private static final long serialVersionUID = 4163467764131079495L;
    private String anchorAvatar;
    private String anchorId;
    private String anchorIntro;
    private String anchorName;
    private String anchorInfoUrl;
    private String currentWork;
    private int viewType;
    private int authorType;
    private boolean hasMore = false;

    @Override
    public String getDataTitle() {
        return anchorName;
    }

    @Override
    public String getDataImg() {
        return anchorAvatar;
    }

    @Override
    public String getDataTag() {
        return anchorIntro;
    }

    @Override
    public String getDataId() {
        return anchorId;
    }

    @Override
    public int getDataType() {
        return 0;
    }

    @Override
    public int getDataViewType() {
        return viewType;
    }

    @Override
    public IListData getOwner() {
        return null;
    }

    @Override
    public String getTime() {
        return currentWork;
    }

    @Override
    public IListShowData getOwenerData() {
        return null;
    }

    public String getAnchorAvatar() {
        return anchorAvatar;
    }

    public AFileItem setAnchorAvatar(String anchorAvatar) {
        this.anchorAvatar = anchorAvatar;
        return this;
    }

    public String getAnchorId() {
        return anchorId;
    }

    public AFileItem setAnchorId(String anchorId) {
        this.anchorId = anchorId;
        return this;
    }

    public String getAnchorIntro() {
        return anchorIntro;
    }

    public AFileItem setAnchorIntro(String anchorIntro) {
        this.anchorIntro = anchorIntro;
        return this;
    }

    public String getAnchorName() {
        return anchorName;
    }

    public AFileItem setAnchorName(String anchorName) {
        this.anchorName = anchorName;
        return this;
    }

    public String getAnchorInfoUrl() {
        return anchorInfoUrl;
    }

    public int getAuthorType() {
        return authorType;
    }

    public void setAuthorType(int authorType) {
        this.authorType = authorType;
    }

    public AFileItem setAnchorInfoUrl(String anchorInfoUrl) {
        this.anchorInfoUrl = anchorInfoUrl;
        return this;
    }

    public String getCurrentWork() {
        return currentWork;
    }

    public AFileItem setCurrentWork(String currentWork) {
        this.currentWork = currentWork;
        return this;
    }

    public int getViewType() {
        return viewType;
    }

    public AFileItem setViewType(int viewType) {
        this.viewType = viewType;
        return this;
    }

    public boolean isHasMore() {
        return hasMore;
    }

    public void setHasMore(boolean hasMore) {
        this.hasMore = hasMore;
    }

    @Override
    public String toString() {
        return "AFileItem{" +
                "anchorAvatar='" + anchorAvatar + '\'' +
                ", anchorId='" + anchorId + '\'' +
                ", anchorIntro='" + anchorIntro + '\'' +
                ", anchorName='" + anchorName + '\'' +
                ", anchorInfoUrl='" + anchorInfoUrl + '\'' +
                ", currentWork='" + currentWork + '\'' +
                '}';
    }
}
